import request from '@/utils/request'

// 查询慢病中心-视频分类列表
export function listVideoClass(query) {
  return request({
    url: '/chronicDisease/videoClass/list',
    method: 'get',
    params: query
  })
}

// 查询慢病中心-视频分类详细
export function getVideoClass(id) {
  return request({
    url: '/chronicDisease/videoClass/' + id,
    method: 'get'
  })
}

// 新增慢病中心-视频分类
export function addVideoClass(data) {
  return request({
    url: '/chronicDisease/videoClass',
    method: 'post',
    data: data
  })
}

// 修改慢病中心-视频分类
export function updateVideoClass(data) {
  return request({
    url: '/chronicDisease/videoClass',
    method: 'put',
    data: data
  })
}

// 删除慢病中心-视频分类
export function delVideoClass(id) {
  return request({
    url: '/chronicDisease/videoClass/' + id,
    method: 'delete'
  })
}
